#!/bin/bash

read -p "请输入0-100的分数：" u_num

if echo $u_num|egrep "[^0-9]" &>/dev/null
then
	echo "请正确输入0-100的分数"
else
	if (( $u_num>=0 && $u_num<=59))
	then
		echo "keep on fighting，may be you can try join google"
	elif (( $u_num>=60 && $u_num<=79))
	then
		echo "come on，baby!may be you can try join facebook"
	elif (( $u_num >=80 && $u_num<=89))
	then
		echo "nice，may be you can try join tencent"
	elif (( $u_num>=90 && $u_num<=100))
	then
		echo "good job，may be you can try join alibaba"
	else
		echo "请正确输入0-100的分数"
	fi
fi
